package com.heima;

public class TypeDemo3 {
    public static void main(String[] args) {
        //理解强制类型转换
        int a = 20;
        int b = (byte)a;
        System.out.println(a);
        System.out.println(b);

        int i = 1500;
        byte j = (byte) i; //byte值最大是127
        System.out.println(j); //-36
    }
}
